#{extends 'main.html' /}
#{set title:'Home' /}

<!-- Mayar: The page that shows my list of Notifications -->
<body>
	
	#{ifnot notificationList}
	<p>You have no notifications</p>
	#{/ifnot} #{else} 
	#{list items: notificationList, as:'notification'}
	
		
		<ul>
			<li>
				<form action="@{Application.setSeen()}" method="POST">
		 			<input type = "hidden" name="notificationId" value="${notification.id}"/> 
					 <a href=${notification.getPath()}>${notification.getMessage()}</a>
					  </li></ul>
				</form>
			</li>
			</ul>
		#{/list} #{/else}

	<a href="@{Application.viewProfile()}">Back to Profile Page</a>

</body>
